package com.ruoyi.kaifa.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 a_user
 * 
 * @author ruoyi
 * @date 2024-10-01
 */
public class AUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 昵称  */
    @Excel(name = "昵称 ")
    private String name;

    /** 账号 */
    @Excel(name = "账号")
    private String account;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 简介 */
    @Excel(name = "简介")
    private String intro;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 标签数组 */
    @Excel(name = "标签数组")
    private String tags;

    /** 实名认证 */
    @Excel(name = "实名认证")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long standingId;

    /** 登录密钥 */
    @Excel(name = "登录密钥")
    private String secret;

    /** 注册ip */
    @Excel(name = "注册ip")
    private String createIp;

    /** 修改ip */
    @Excel(name = "修改ip")
    private String updateIp;

    /** 软删除 */
    private Date isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro() 
    {
        return intro;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setBirthday(Date birthday) 
    {
        this.birthday = birthday;
    }

    public Date getBirthday() 
    {
        return birthday;
    }
    public void setTags(String tags) 
    {
        this.tags = tags;
    }

    public String getTags() 
    {
        return tags;
    }
    public void setStandingId(Long standingId) 
    {
        this.standingId = standingId;
    }

    public Long getStandingId() 
    {
        return standingId;
    }
    public void setSecret(String secret) 
    {
        this.secret = secret;
    }

    public String getSecret() 
    {
        return secret;
    }
    public void setCreateIp(String createIp) 
    {
        this.createIp = createIp;
    }

    public String getCreateIp() 
    {
        return createIp;
    }
    public void setUpdateIp(String updateIp) 
    {
        this.updateIp = updateIp;
    }

    public String getUpdateIp() 
    {
        return updateIp;
    }
    public void setIsDelete(Date isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Date getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("account", getAccount())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("password", getPassword())
            .append("avatar", getAvatar())
            .append("intro", getIntro())
            .append("sex", getSex())
            .append("birthday", getBirthday())
            .append("tags", getTags())
            .append("standingId", getStandingId())
            .append("secret", getSecret())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createIp", getCreateIp())
            .append("updateIp", getUpdateIp())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
